Introduce version macros for 3.12
authorMatthias Clasen <mclasen@redhat.com>
Mon, 23 Sep 2013 22:55:28 +0000 (18:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 23 Sep 2013 22:55:28 +0000 (18:55 -0400)
gdk/gdkversionmacros.h.in

index 1f92b9e5a880e033ac580e3c9aaab3892a7881c2..c5781e82c500d51a5643db9e8e484e523ec583cb 100644 (file)
  */
 #define GDK_VERSION_3_10        (G_ENCODE_VERSION (3, 10))
 
+/**
+ * GDK_VERSION_3_12:
+ *
+ * A macro that evaluates to the 3.12 version of GDK, in a format
+ * that can be used by the C pre-processor.
+ *
+ * Since: 3.12
+ */
+#define GDK_VERSION_3_12        (G_ENCODE_VERSION (3, 12))
+
 
 /* evaluates to the current stable version; for development cycles,
  * this means the next stable target
 # define GDK_AVAILABLE_IN_3_10                _GDK_EXTERN
 #endif
 
+#if GDK_VERSION_MIN_REQUIRED >= GDK_VERSION_3_12
+# define GDK_DEPRECATED_IN_3_12               GDK_DEPRECATED
+# define GDK_DEPRECATED_IN_3_12_FOR(f)        GDK_DEPRECATED_FOR(f)
+#else
+# define GDK_DEPRECATED_IN_3_12               _GDK_EXTERN
+# define GDK_DEPRECATED_IN_3_12_FOR(f)        _GDK_EXTERN
+#endif
+
+#if GDK_VERSION_MAX_ALLOWED < GDK_VERSION_3_12
+# define GDK_AVAILABLE_IN_3_12                GDK_UNAVAILABLE(3, 12)
+#else
+# define GDK_AVAILABLE_IN_3_12                _GDK_EXTERN
+#endif
+
 #endif  /* __GDK_VERSION_MACROS_H__ */